import os
oldFilename = input('请输入文件名：')
filename, extention = os.path.splitext(oldFilename)
newFilename = filename + '-副本' + extention
oldFile = open(oldFilename, 'rb')
newFile = open(newFilename, 'ab')
while True:
    content = oldFile.read(1024)
    if not content:
        break

    newFile.write(content)


oldFile.close()
newFile.close()